home *** CD-ROM | disk | FTP | other *** search
- ECHO
-
- Displays a string.
-
- Format
-
- ECHO [<string>] [NOLINE] [FIRST <n>] [LEN <n>] [TO <filename>]
-
- Template
-
- /M,LINE/S,FIRST/K/N,LEN/K/N,TO/K
-
- Location
-
- Internal
-
- ECHO writes the specified string to the current output window or device. By
- default the string is sent to the screen, but if you use the TO option, you
- can send the string to any specified device or file.
-
- When the NOLINE option is specified, ECHO does not automatically move the
- cursor to the next line after printing the string.
-
- The FIRST and LEN options allow the echoing of a substring. FIRST <n>
- indicate the character position from which to begin the echo; LEN <n>
- indicates the number of characters of the substring to echo, beginning with
- the FIRST character. If the FIRST option is omitted and only the LEN keyword
- is given, the substring printed consists of the rightmost <n> characters of
- the main string. For example, if your string is 20 characters long and you
- specify LEN 4, the 17TH, 18th, 19th, and 20th characters of the string are
- echoed.
-
- Examples:
-
- 1> ECHO "hello out there!"
-
- hello out there!
-
- 1> ECHO "hello out there!" NOLINE FIRST 0 LEN 5 hello1>
-
- For further examples using the ECHO command, see Chapter 8.
-